﻿@model WmWebSystem.Models.Project

@{
    ViewBag.Title = "创建项目";
    Layout = "~/Views/Shared/_Layout_manage.cshtml";
}

<div class="contentcontainer">
    <div class="headings">
        <h2>创建项目</h2>
    </div>
    <div class="contentbox">
        @using (Html.BeginForm("DoCreate", "Project", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary(true)
            <table>
                <tr>
                    <th width="200px">项目名称(*)</th>
                    <td>
                       @Html.TextBoxFor(model => model.ProjectName, new { @class = "box" })
                    </td>
                </tr>
                <tr>
                    <th>集资金额(*)</th>
                    <td>
                       @Html.TextBoxFor(model => model.TargetValue, new { @class = "box" })
                    </td>
                </tr>
                <tr>
                    <th>项目图标（LOGO）</th>
                    <td>
                        <input type="file" id="projectLogo" name="projectLogo" class="filebox" />
                    </td>
                </tr>
                 <tr>
                    <th>项目类型</th>
                    <td>
                        @{
                            List<SelectListItem> selectList = new List<SelectListItem>();
                            selectList.Add(new SelectListItem { Text = "--请新闻类型--", Value = "0", Selected = true });
                            foreach (var e in Enum.GetValues(typeof(WmWebSystem.Models.Enum.ProjectType))) 
                            {
                                selectList.Add(new SelectListItem { 
                                    Text = Enum.GetName(typeof(WmWebSystem.Models.Enum.ProjectType), e), 
                                    Value = ((int)e).ToString() 
                                });
                              }
                              @Html.DropDownList("projectType", selectList);
                            }
                        
                    </td>
                </tr>
                <tr>
                   <th class="myTable_th">项目简介（Summary）</th>
                   <td>
                     @Html.TextAreaFor(model => model.Content, new { @class = "box_area" })
                   </td>
                </tr>
                <tr>
                   <th></th>
                   <td>
                    <input type="button" title="取消" value="<< 返回" id="GoBackList" onclick="history.go(-1)" />
                    <input type="submit" id="CreateSubmit" class="btn" title="确认创建" value="确认创建 >> "  />
                   </td>
                </tr>
            </table>
        }  
        <div style="clear: both;"></div>
    </div>
</div>


<script type="text/javascript">
    CKEDITOR.replace('Content');
</script>


